package com.sun.tspalgorithm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class City {
    Double x;    //城市坐标x
    Double y;    //城市坐标y

    public int getXint() {
        return x.intValue();
    }

    public int getYint() {
        return y.intValue();
    }

    @Override
    public String toString() {
        return "(" + x.intValue() + "," + y.intValue() + ")";
    }
}
